package com.netease.pris.activity;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.KeyEvent;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import android.widget.LinearLayout;
import android.widget.ViewFlipper;
import com.netease.b.a.d;
import com.netease.pris.b.a;

public class PRISActivityGuide extends Activity
{
  static final String a = "PRISActivityGuide";
  public static final String b = "update";
  int[] c;
  private boolean d = false;
  private ViewFlipper e;
  private FrameLayout f;
  private GestureDetector g;

  private void b()
  {
    int i = 0;
    if (a.n())
      MainGridActivity.a(this, 0, 0);
    do
    {
      finish();
      return;
    }
    while (!this.d);
    if (d.h().i());
    while (true)
    {
      MainGridActivity.a(this, i, 1);
      break;
      i = 7;
    }
  }

  void a()
  {
    int i = 0;
    this.d = getIntent().getBooleanExtra("update", false);
    int[] arrayOfInt2;
    if (this.d)
    {
      arrayOfInt2 = new int[2];
      arrayOfInt2[0] = 2130837633;
      arrayOfInt2[1] = 2130837634;
    }
    int[] arrayOfInt1;
    for (this.c = arrayOfInt2; ; this.c = arrayOfInt1)
    {
      this.g = new GestureDetector(new de(this));
      this.f = new FrameLayout(this);
      this.f.setBackgroundColor(Color.rgb(234, 234, 235));
      this.f.setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
      this.e = new ViewFlipper(this);
      this.e.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
      while (i < this.c.length)
      {
        LinearLayout localLinearLayout = new LinearLayout(this);
        localLinearLayout.setBackgroundResource(this.c[i]);
        localLinearLayout.setId(i);
        this.e.addView(localLinearLayout, new ViewGroup.LayoutParams(-1, -1));
        i++;
      }
      arrayOfInt1 = new int[5];
      arrayOfInt1[0] = 2130837628;
      arrayOfInt1[1] = 2130837629;
      arrayOfInt1[2] = 2130837630;
      arrayOfInt1[3] = 2130837631;
      arrayOfInt1[4] = 2130837632;
    }
    this.f.addView(this.e, new ViewGroup.LayoutParams(-1, -1));
    Button localButton = new Button(this);
    localButton.setText(2131362133);
    localButton.setOnClickListener(new dh(this));
    FrameLayout.LayoutParams localLayoutParams = new FrameLayout.LayoutParams(com.netease.image.c.a(this, 84.0F), com.netease.image.c.a(this, 42.0F));
    localLayoutParams.gravity = 81;
    localLayoutParams.bottomMargin = com.netease.image.c.a(this, 12.0F);
    this.f.addView(localButton, localLayoutParams);
    this.f.setOnTouchListener(new dg(this));
    setContentView(this.f);
    if (this.d)
      com.netease.pris.d.c.b(getString(2131361814));
    while (true)
    {
      return;
      com.netease.pris.d.c.b(getString(2131361815));
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    getWindow().setFlags(1024, 1024);
    requestWindowFeature(1);
    super.onCreate(paramBundle);
    a();
  }

  protected void onDestroy()
  {
    if (this.e != null)
    {
      this.e.removeAllViews();
      this.e.clearAnimation();
      this.e = null;
    }
    super.onDestroy();
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    if ((paramKeyEvent.getAction() == 0) && (paramInt == 4))
      b();
    return super.onKeyDown(paramInt, paramKeyEvent);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.PRISActivityGuide
 * JD-Core Version:    0.6.0
 */